#include "SFcalcError.h"
#include <cstdlib>
#include <cmath>
#include <cstdio>

const int ERROR_NUM_SIZE = 2;

sfError::sfError(int code/* =NO_ERROR */, string msg/* ="no error" */){
	errCode = code;
	errMsg = msg;
}

void sfError::output(ostream &ost /* = cout */){
	ost << "Error Code:" << errCode << ends << "Error Message:" << errMsg << flush;
}

string sfError::output_str(){
	return "Error Code:" + to_string(errCode) + " " + "Error Message:" + errMsg ;
} 